<?php
declare (strict_types=1);

namespace app\model;

use think\Model;

/**
 * 管理员用户
 * @mixin Model
 */
class AdminUser extends Model
{
    protected $addAllowField = [];
    protected $editAllowField = [];
    protected $getListField = [];
    protected $getDetailField = ['id', 'mobile', 'password', 'salt', 'username', 'nick_name'];

    public function getUserInfo($where)
    {
        return $this->field($this->getDetailField)->where($where)->findOrEmpty();
    }
}
